package src.Practice.day20191017;

public class Thread_02 extends Thread {
    @Override
    public void run() {
        System.out.println("这是第二个线程");
        for (int i =20;i<40;i++){
            System.out.println(this.getName()+i);
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
